package com.biz.primus.ms.thirdlogin.feign;

import com.biz.primus.model.member.vo.MemberVo;
import com.biz.primus.ms.thirdlogin.degraded.DegradedMemberFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jun.liu
 * @date 2017/9/19
 */
@FeignClient(qualifier = "memberFeignClient", name = "service-customer", fallback = DegradedMemberFeignClient.class)
public interface MemberFeignClient
{

    @GetMapping("soa/memberService/getMemberByMobile")
    MemberVo getMemberByMobile(@RequestParam("moblie") String moblie);

    @PostMapping("soa/memberService/bindingSaveMemberByMobile")
    MemberVo bindingSaveMemberByMobile(@RequestBody MemberVo vo);
}
